import getpass
card = int(getpass.getpass("请输入数字："))
print(type(card))
count = 0

while True:
    if count <3:
        guess = int(input("请猜一猜数字是多少："))
        print(type(guess))
        if card == guess:
            print("你猜对啦！你真是猜数字小天才")
            break
        elif card > guess:
            print("你猜的数字小啦，往大里猜哈")
        else:
            print("你猜的数字太大啦，往小猜哈")
    else:
        print("猜这么久都没猜出来，你真的不行！")
        break
    count = count+1